WP_Defender\Component\IP\Antibot_Global_Firewall B

Total Complexity 82
Dependencies 8
Dependents 9
Total lines 585
Lines of code 260
Logical lines of code 154
Comment lines 182
Methods 28
Properties 5

Methods 28

Method Rating Maintainability Complexity Lines of code
download_blocklist()
A
47 10 34
toggle_on_hosting()
A
52 8 25
read_file_generator()
S
57 6 17
switch_managed_by()
S
63 6 11
managed_by_hosting_action()
S
57 4 19
download_and_store_blocklist()
S
60 4 15
is_displayed()
S
64 4 11
managed_by_plugin_action()
S
57 3 17
maybe_download()
S
63 4 10
get_cached_blocklisted_ips()
S
60 3 13
is_active_via_plugin()
S
78 3 3
store_blocklist()
S
61 2 12
get_blocklisted_ip_count()
S
71 2 6
is_ip_blocked()
S
74 2 4
is_active()
S
79 2 3
frontend_is_enabled()
S
72 2 5
get_default_managed_by()
S
79 2 3
get_managed_by()
S
75 2 4
get_managed_by_label()
S
72 2 5
set_managed_by()
S
67 2 8
log_ip_message()
S
68 2 7
confirm_toggle_on_hosting()
S
77 1 4
__construct()
S
68 1 7
set_last_sync()
S
79 1 3
is_enabled()
S
75 1 4
get_button_text()
S
79 1 3
delete_blocklist()
S
77 1 4
get_last_sync()
S
79 1 3